import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/home/Home.vue'
import AzAgentMap from '../views/agentmap/AzAgentMap.vue'
import RegionAgentMap from '../views/agentmap/RegionAgentMap.vue'
import ServAgentMap from '../views/agentmap/ServAgentMap.vue'
import KafkaBrokerMap from '../views/kafkamap/KafkaBrokerMap.vue'
import AgentServInfo from '../views/agentservinfo/AgentServInfo.vue'


const Router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:Home,
            name:"home",
            children:[
                {
                    path:'agentmap/region',
                    component:RegionAgentMap,
                    name:"RegionAgentMap"
                },{
                    path:'agentmap/az',
                    component:AzAgentMap,
                    name:"AzAgentMap"
                },{
                    path:'agentmap/serv',
                    component:ServAgentMap,
                    name:"ServAgentMap"
                },{
                    path:'kafkamap',
                    component:KafkaBrokerMap,
                    name:"KafkaBrokerMap"
                },{
                    path:'agentservinfo',
                    component:AgentServInfo,
                    name:"AgentServInfo"
                }
            ],
            redirect:'/home/agentmap/region'
        }
    ]
})

export default Router;